package com.duanjw.springframework.configuration.config;

import com.duanjw.springframework.configuration.imports.MyImportSelector;
import com.duanjw.springframework.configuration.service.UserService;
import com.duanjw.springframework.configuration.service.impl.UserServiceImpl1;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * 配置
 *
 * @author duanjw
 */
@Configuration
@ComponentScan("com.duanjw.springframework.configuration")
@Import(MyImportSelector.class)
public class AppConfig {

    @Bean
    public UserServiceImpl1 userServiceImpl1(){
        return new UserServiceImpl1();
    }
}
